package world.unit.weapon;

import world.World;

public class Weapon
{
	private double range;
	private double rate;
	private double damage;
	
	/**
	 * creates a new weapon
	 * @param range the range of the weapon
	 * @param rate the rate (in seconds) that the weapon fires at
	 * @param damage the damage dealt by one shot of the weapon
	 */
	public Weapon(double range, double rate, double damage)
	{
		this.rate = rate;
		this.range = range;
		this.damage = damage;
	}
	/**
	 * gets the range (in game space) of the weapon
	 * @return returns the range
	 */
	public double getRange()
	{
		return range;
	}
	/**
	 * gets the rate (in seconds) at which the weapon fires
	 * @return returns the rate of fire
	 */
	public double getRate()
	{
		return rate;
	}
	/**
	 * gets the damage dealt when a unit is hit by the shot fired
	 * from this weapon
	 * @return returns the weapon damage
	 */
	public double getDamage()
	{
		return damage;
	}
	public void updateWeapon(World w)
	{
		
	}
}
